\doxysection{stm32h7xx\+\_\+hal\+\_\+i2c\+\_\+ex.\+h}
\hypertarget{stm32h7xx__hal__i2c__ex_8h_source}{}\label{stm32h7xx__hal__i2c__ex_8h_source}\index{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/Drivers/STM32H7xx\_HAL\_Driver/Inc/stm32h7xx\_hal\_i2c\_ex.h@{C:/Users/ASUS/Desktop/dm-\/ctrlH7-\/balance-\/9025test/Drivers/STM32H7xx\_HAL\_Driver/Inc/stm32h7xx\_hal\_i2c\_ex.h}}
\mbox{\hyperlink{stm32h7xx__hal__i2c__ex_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ }
\DoxyCodeLine{00018\ }
\DoxyCodeLine{00019\ \textcolor{comment}{/*\ Define\ to\ prevent\ recursive\ inclusion\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00020\ \textcolor{preprocessor}{\#ifndef\ STM32H7xx\_HAL\_I2C\_EX\_H}}
\DoxyCodeLine{00021\ \textcolor{preprocessor}{\#define\ STM32H7xx\_HAL\_I2C\_EX\_H}}
\DoxyCodeLine{00022\ }
\DoxyCodeLine{00023\ \textcolor{preprocessor}{\#ifdef\ \_\_cplusplus}}
\DoxyCodeLine{00024\ \textcolor{keyword}{extern}\ \textcolor{stringliteral}{"{}C"{}}\ \{}
\DoxyCodeLine{00025\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00026\ }
\DoxyCodeLine{00027\ \textcolor{comment}{/*\ Includes\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00028\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{stm32h7xx__hal__def_8h}{stm32h7xx\_hal\_def.h}}"{}}}
\DoxyCodeLine{00029\ }
\DoxyCodeLine{00033\ }
\DoxyCodeLine{00037\ }
\DoxyCodeLine{00038\ \textcolor{comment}{/*\ Exported\ types\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00039\ \textcolor{comment}{/*\ Exported\ constants\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00043\ }
\DoxyCodeLine{00047\ \textcolor{preprocessor}{\#define\ I2C\_ANALOGFILTER\_ENABLE\ \ \ \ \ \ \ \ \ 0x00000000U}}
\DoxyCodeLine{00048\ \textcolor{preprocessor}{\#define\ I2C\_ANALOGFILTER\_DISABLE\ \ \ \ \ \ \ \ I2C\_CR1\_ANFOFF}\textcolor{preprocessor}{}}
\DoxyCodeLine{00052\ }
\DoxyCodeLine{00056\ \textcolor{preprocessor}{\#define\ I2C\_FMP\_NOT\_SUPPORTED\ \ \ \ \ \ \ \ \ \ \ 0xAAAA0000U\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }\textcolor{preprocessor}{}}
\DoxyCodeLine{00057\ \textcolor{preprocessor}{\#define\ I2C\_FASTMODEPLUS\_PB6\ \ \ \ \ \ \ \ \ \ \ \ SYSCFG\_PMCR\_I2C\_PB6\_FMP\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }\textcolor{preprocessor}{}}
\DoxyCodeLine{00058\ \textcolor{preprocessor}{\#define\ I2C\_FASTMODEPLUS\_PB7\ \ \ \ \ \ \ \ \ \ \ \ SYSCFG\_PMCR\_I2C\_PB7\_FMP\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }\textcolor{preprocessor}{}}
\DoxyCodeLine{00059\ \textcolor{preprocessor}{\#define\ I2C\_FASTMODEPLUS\_PB8\ \ \ \ \ \ \ \ \ \ \ \ SYSCFG\_PMCR\_I2C\_PB8\_FMP\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }\textcolor{preprocessor}{}}
\DoxyCodeLine{00060\ \textcolor{preprocessor}{\#define\ I2C\_FASTMODEPLUS\_PB9\ \ \ \ \ \ \ \ \ \ \ \ SYSCFG\_PMCR\_I2C\_PB9\_FMP\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }\textcolor{preprocessor}{}}
\DoxyCodeLine{00061\ \textcolor{preprocessor}{\#define\ I2C\_FASTMODEPLUS\_I2C1\ \ \ \ \ \ \ \ \ \ \ SYSCFG\_PMCR\_I2C1\_FMP\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }\textcolor{preprocessor}{}}
\DoxyCodeLine{00062\ \textcolor{preprocessor}{\#define\ I2C\_FASTMODEPLUS\_I2C2\ \ \ \ \ \ \ \ \ \ \ SYSCFG\_PMCR\_I2C2\_FMP\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }\textcolor{preprocessor}{}}
\DoxyCodeLine{00063\ \textcolor{preprocessor}{\#define\ I2C\_FASTMODEPLUS\_I2C3\ \ \ \ \ \ \ \ \ \ \ SYSCFG\_PMCR\_I2C3\_FMP\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }\textcolor{preprocessor}{}}
\DoxyCodeLine{00064\ \textcolor{preprocessor}{\#define\ I2C\_FASTMODEPLUS\_I2C4\ \ \ \ \ \ \ \ \ \ \ SYSCFG\_PMCR\_I2C4\_FMP\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }\textcolor{preprocessor}{}}
\DoxyCodeLine{00065\ \textcolor{preprocessor}{\#if\ defined(SYSCFG\_PMCR\_I2C5\_FMP)}}
\DoxyCodeLine{00066\ \textcolor{preprocessor}{\#define\ I2C\_FASTMODEPLUS\_I2C5\ \ \ \ \ \ \ \ \ \ \ SYSCFG\_PMCR\_I2C5\_FMP\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }\textcolor{preprocessor}{}}
\DoxyCodeLine{00067\ \textcolor{preprocessor}{\#else}}
\DoxyCodeLine{00068\ \textcolor{preprocessor}{\#define\ I2C\_FASTMODEPLUS\_I2C5\ \ \ \ \ \ \ \ \ \ \ (uint32\_t)(0x00001000U\ |\ I2C\_FMP\_NOT\_SUPPORTED)\ }\textcolor{preprocessor}{}}
\DoxyCodeLine{00069\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{/*\ SYSCFG\_PMCR\_I2C5\_FMP\ */}\textcolor{preprocessor}{}\textcolor{preprocessor}{}}
\DoxyCodeLine{00073\ }
\DoxyCodeLine{00077\ }
\DoxyCodeLine{00078\ \textcolor{comment}{/*\ Exported\ macro\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00082\ }
\DoxyCodeLine{00086\ }
\DoxyCodeLine{00087\ \textcolor{comment}{/*\ Exported\ functions\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00091\ }
\DoxyCodeLine{00095\ \textcolor{comment}{/*\ Peripheral\ Control\ functions\ \ ************************************************/}}
\DoxyCodeLine{00096\ \mbox{\hyperlink{stm32h7xx__hal__def_8h_a63c0679d1cb8b8c684fbb0632743478f}{HAL\_StatusTypeDef}}\ HAL\_I2CEx\_ConfigAnalogFilter(I2C\_HandleTypeDef\ *hi2c,\ uint32\_t\ AnalogFilter);}
\DoxyCodeLine{00097\ \mbox{\hyperlink{stm32h7xx__hal__def_8h_a63c0679d1cb8b8c684fbb0632743478f}{HAL\_StatusTypeDef}}\ HAL\_I2CEx\_ConfigDigitalFilter(I2C\_HandleTypeDef\ *hi2c,\ uint32\_t\ DigitalFilter);}
\DoxyCodeLine{00101\ }
\DoxyCodeLine{00105\ \mbox{\hyperlink{stm32h7xx__hal__def_8h_a63c0679d1cb8b8c684fbb0632743478f}{HAL\_StatusTypeDef}}\ HAL\_I2CEx\_EnableWakeUp(I2C\_HandleTypeDef\ *hi2c);}
\DoxyCodeLine{00106\ \mbox{\hyperlink{stm32h7xx__hal__def_8h_a63c0679d1cb8b8c684fbb0632743478f}{HAL\_StatusTypeDef}}\ HAL\_I2CEx\_DisableWakeUp(I2C\_HandleTypeDef\ *hi2c);}
\DoxyCodeLine{00110\ }
\DoxyCodeLine{00114\ \textcolor{keywordtype}{void}\ HAL\_I2CEx\_EnableFastModePlus(uint32\_t\ ConfigFastModePlus);}
\DoxyCodeLine{00115\ \textcolor{keywordtype}{void}\ HAL\_I2CEx\_DisableFastModePlus(uint32\_t\ ConfigFastModePlus);}
\DoxyCodeLine{00119\ }
\DoxyCodeLine{00123\ }
\DoxyCodeLine{00124\ \textcolor{comment}{/*\ Private\ constants\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00128\ }
\DoxyCodeLine{00132\ }
\DoxyCodeLine{00133\ \textcolor{comment}{/*\ Private\ macros\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00137\ \textcolor{preprocessor}{\#define\ IS\_I2C\_ANALOG\_FILTER(FILTER)\ \ \ \ (((FILTER)\ ==\ I2C\_ANALOGFILTER\_ENABLE)\ ||\ \(\backslash\)}}
\DoxyCodeLine{00138\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ((FILTER)\ ==\ I2C\_ANALOGFILTER\_DISABLE))}}
\DoxyCodeLine{00139\ }
\DoxyCodeLine{00140\ \textcolor{preprocessor}{\#define\ IS\_I2C\_DIGITAL\_FILTER(FILTER)\ \ \ ((FILTER)\ <=\ 0x0000000FU)}}
\DoxyCodeLine{00141\ }
\DoxyCodeLine{00142\ \textcolor{preprocessor}{\#define\ IS\_I2C\_FASTMODEPLUS(\_\_CONFIG\_\_)\ ((((\_\_CONFIG\_\_)\ \&\ I2C\_FASTMODEPLUS\_PB6)\ \ ==\ I2C\_FASTMODEPLUS\_PB6)\ \ ||\ \(\backslash\)}}
\DoxyCodeLine{00143\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (((\_\_CONFIG\_\_)\ \&\ I2C\_FASTMODEPLUS\_PB7)\ \ ==\ I2C\_FASTMODEPLUS\_PB7)\ \ ||\ \(\backslash\)}}
\DoxyCodeLine{00144\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (((\_\_CONFIG\_\_)\ \&\ I2C\_FASTMODEPLUS\_PB8)\ \ ==\ I2C\_FASTMODEPLUS\_PB8)\ \ ||\ \(\backslash\)}}
\DoxyCodeLine{00145\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (((\_\_CONFIG\_\_)\ \&\ I2C\_FASTMODEPLUS\_PB9)\ \ ==\ I2C\_FASTMODEPLUS\_PB9)\ \ ||\ \(\backslash\)}}
\DoxyCodeLine{00146\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (((\_\_CONFIG\_\_)\ \&\ I2C\_FASTMODEPLUS\_I2C1)\ ==\ I2C\_FASTMODEPLUS\_I2C1)\ ||\ \(\backslash\)}}
\DoxyCodeLine{00147\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (((\_\_CONFIG\_\_)\ \&\ I2C\_FASTMODEPLUS\_I2C2)\ ==\ I2C\_FASTMODEPLUS\_I2C2)\ ||\ \(\backslash\)}}
\DoxyCodeLine{00148\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (((\_\_CONFIG\_\_)\ \&\ I2C\_FASTMODEPLUS\_I2C3)\ ==\ I2C\_FASTMODEPLUS\_I2C3)\ ||\ \(\backslash\)}}
\DoxyCodeLine{00149\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ (((\_\_CONFIG\_\_)\ \&\ I2C\_FASTMODEPLUS\_I2C4)\ ==\ I2C\_FASTMODEPLUS\_I2C4))}\textcolor{preprocessor}{}}
\DoxyCodeLine{00153\ }
\DoxyCodeLine{00154\ \textcolor{comment}{/*\ Private\ Functions\ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/*/}}
\DoxyCodeLine{00158\ \textcolor{comment}{/*\ Private\ functions\ are\ defined\ in\ stm32h7xx\_hal\_i2c\_ex.c\ file\ */}}
\DoxyCodeLine{00162\ }
\DoxyCodeLine{00166\ }
\DoxyCodeLine{00170\ }
\DoxyCodeLine{00171\ \textcolor{preprocessor}{\#ifdef\ \_\_cplusplus}}
\DoxyCodeLine{00172\ \}}
\DoxyCodeLine{00173\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00174\ }
\DoxyCodeLine{00175\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{/*\ STM32H7xx\_HAL\_I2C\_EX\_H\ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
